package fun.ticsmyc.nocoderTemplate;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 * @author Ticsmyc
 * @date 2020-11-25 16:10
 */
public class 链表输入 {
    public static void main(String[] args)throws Exception{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] commands = br.readLine().split(" ");
        int n = Integer.parseInt(commands[0]);

        ListNode head = new ListNode(-1);
        ListNode cur = head;
        commands = br.readLine().split(" ");
        for(int i=0 ;i<n; ++i){
            ListNode temp = new ListNode(Integer.parseInt(commands[i]));
            cur.next = temp;
            cur=cur.next;
        }
        fun(head.next);
    }

    private static void fun(ListNode head){

    }

    private static void print(ListNode head){
        while(head!= null){
            System.out.print(head.val+" ");
            head = head.next;
        }
    }

}




//双向链表Node
class ListNode{
    public int val;
    public ListNode next;
    public ListNode pre;

    public ListNode(int val){
        this.val =val;
    }
}